package com.ruoyi.merchant.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * 用户信息Mapper接口
 */
public interface UserMapper {
    
    /**
     * 查询用户基本信息（昵称、手机号、区域ID）
     */
    @Select("SELECT nickname, phone_number, region_id " +
            "FROM users " +
            "WHERE customer_id = #{customerId} AND deleted_at IS NULL")
    Map<String, Object> selectUserBasicInfo(@Param("customerId") Long customerId);
}
